package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureAlarmStatisticsMapper;
import com.ruoyi.system.domain.DispatchPressureAlarmStatistics;
import com.ruoyi.system.service.IDispatchPressureAlarmStatisticsService;

/**
 * 压力告警统计结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureAlarmStatisticsServiceImpl implements IDispatchPressureAlarmStatisticsService 
{
    @Autowired
    private DispatchPressureAlarmStatisticsMapper dispatchPressureAlarmStatisticsMapper;

    /**
     * 查询压力告警统计结果
     * 
     * @param pressureAlarmStatisticsId 压力告警统计结果主键
     * @return 压力告警统计结果
     */
    @Override
    public DispatchPressureAlarmStatistics selectDispatchPressureAlarmStatisticsByPressureAlarmStatisticsId(Long pressureAlarmStatisticsId)
    {
        return dispatchPressureAlarmStatisticsMapper.selectDispatchPressureAlarmStatisticsByPressureAlarmStatisticsId(pressureAlarmStatisticsId);
    }

    /**
     * 查询压力告警统计结果列表
     * 
     * @param dispatchPressureAlarmStatistics 压力告警统计结果
     * @return 压力告警统计结果
     */
    @Override
    public List<DispatchPressureAlarmStatistics> selectDispatchPressureAlarmStatisticsList(DispatchPressureAlarmStatistics dispatchPressureAlarmStatistics)
    {
        return dispatchPressureAlarmStatisticsMapper.selectDispatchPressureAlarmStatisticsList(dispatchPressureAlarmStatistics);
    }

    /**
     * 新增压力告警统计结果
     * 
     * @param dispatchPressureAlarmStatistics 压力告警统计结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureAlarmStatistics(DispatchPressureAlarmStatistics dispatchPressureAlarmStatistics)
    {
        return dispatchPressureAlarmStatisticsMapper.insertDispatchPressureAlarmStatistics(dispatchPressureAlarmStatistics);
    }

    /**
     * 修改压力告警统计结果
     * 
     * @param dispatchPressureAlarmStatistics 压力告警统计结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureAlarmStatistics(DispatchPressureAlarmStatistics dispatchPressureAlarmStatistics)
    {
        return dispatchPressureAlarmStatisticsMapper.updateDispatchPressureAlarmStatistics(dispatchPressureAlarmStatistics);
    }

    /**
     * 批量删除压力告警统计结果
     * 
     * @param pressureAlarmStatisticsIds 需要删除的压力告警统计结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureAlarmStatisticsByPressureAlarmStatisticsIds(Long[] pressureAlarmStatisticsIds)
    {
        return dispatchPressureAlarmStatisticsMapper.deleteDispatchPressureAlarmStatisticsByPressureAlarmStatisticsIds(pressureAlarmStatisticsIds);
    }

    /**
     * 删除压力告警统计结果信息
     * 
     * @param pressureAlarmStatisticsId 压力告警统计结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureAlarmStatisticsByPressureAlarmStatisticsId(Long pressureAlarmStatisticsId)
    {
        return dispatchPressureAlarmStatisticsMapper.deleteDispatchPressureAlarmStatisticsByPressureAlarmStatisticsId(pressureAlarmStatisticsId);
    }
}
